package com.blog.service;

import com.blog.domain.Blog;
import com.blog.domain.Type;
import com.blog.domain.User;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Type entities
 * 
 */
public interface TypeService {

	/**
	 * Return all Type entity
	 * 
	 */
	public List<Type> findAllTypes(Integer startResult, Integer maxRows);

	/**
	 */
	public Type findTypeByPrimaryKey(Integer id);

	/**
	 * Load an existing Type entity
	 * 
	 */
	public Set<Type> loadTypes();

	/**
	 * Delete an existing User entity
	 * 
	 */
	public Type deleteTypeUser(Integer type_id, Integer related_user_id);

	/**
	 * Save an existing Type entity
	 * 
	 */
	public void saveType(Type type);

	/**
	 * Save an existing User entity
	 * 
	 */
	public Type saveTypeUser(Integer id_1, User related_user);

	/**
	 * Return a count of all Type entity
	 * 
	 */
	public Integer countTypes();

	/**
	 * Delete an existing Type entity
	 * 
	 */
	public void deleteType(Type type_1);

	/**
	 * Delete an existing Blog entity
	 * 
	 */
	public Type deleteTypeBlogs(Integer type_id_1, Integer related_blogs_id);

	/**
	 * Save an existing Blog entity
	 * 
	 */
	public Type saveTypeBlogs(Integer id_2, Blog related_blogs);
}